package com.xinhe.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;


@Entity
@ApiModel(description = "资产统计count详情")
@Table(name = "tb_asset_count")
public class AssetCount {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("关联用户")
    private Long fUserId;
    @ApiModelProperty("资产类型 RMB(\"人民币\"),\n" +
            "YUN_CHA_SEED(\"云茶籽\"),\n" +
            "NEW_YUN_CHA_SEED(\"云茶籽\"),\n" +
            "TEA_OIL_CARD(\"茶油卡\"),\n" +
            "CONSUMER_GOLD_RED_ENVELOPE(\"消费金红包\"),\n" +
            "UNFREEZING_CONSUMER_GOLD_RED_ENVELOPE(\"解冻消费金红包\"),\n" +
            "TEA_OIL(\"茶油\");")
    private String type;
    @ApiModelProperty("待获得")
    private BigDecimal available = BigDecimal.ZERO;
    @ApiModelProperty("冻结")
    private BigDecimal frozen = BigDecimal.ZERO;
    @ApiModelProperty("剩余")
    private BigDecimal remainder = BigDecimal.ZERO;
    @ApiModelProperty("总计")
    private BigDecimal total = BigDecimal.ZERO;

    public AssetCount() {
    }

    public AssetCount(Long fUserId, String type) {
        this.fUserId = fUserId;
        this.type = type;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getfUserId() {
        return fUserId;
    }

    public void setfUserId(Long fUserId) {
        this.fUserId = fUserId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public BigDecimal getAvailable() {
        return available;
    }

    public void setAvailable(BigDecimal available) {
        this.available = available;
    }

    public BigDecimal getFrozen() {
        return frozen;
    }

    public void setFrozen(BigDecimal frozen) {
        this.frozen = frozen;
    }

    public BigDecimal getRemainder() {
        return remainder;
    }

    public void setRemainder(BigDecimal remainder) {
        this.remainder = remainder;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }
}
